cbuffer g_GlobalConstantBufferParticles : register (b3)
{
  float4   fadeParams    : packoffset(c0);  // particle fade parameter: near, far, 1/(far-near)
  float4   vSubDivAspect : packoffset(c1);  // particle animation parameter: xy:animsubdiv, z:aspect (but not used), w:repetitions 
  float4   vStepTexel    : packoffset(c2);  // particle animation parameter: xy:1/animsubdiv, yw:1/texturesize
  float4   vConfig       : packoffset(c3);  // particle flags: x=animated, y=usernormals, z=distorted, w=z-offset
#if !defined(PARTICLES_USE_HARDWARESPANNING) && defined(PARTICLES_GEOMETRY)
  float4   vParticleColor: packoffset(c4);  // Used for particle color for non-HWS geometry particles
#else
  float4   vCornerUV     : packoffset(c4);  // Corners: xy:upper left, zw: lower right. E.g. -0.5,-0.5,0.5,0.5.
#endif
}
